﻿using DevExpress.DataAccess.Native.Json;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Application.Services;

namespace YAPACS.RisServer.Interface
{
    /// <summary>
    /// 工具栏扩展操作
    /// 工具栏扩展操作调用
    /// </summary>
    public interface ITooBar:IApplicationService
    {
        /// <summary>
        /// 获取工具栏扩展功能项目
        /// </summary>
        /// <param name="ToolbarId">工具栏ID</param>
        /// <returns></returns>
        [HttpPost]
        public Task<ResultDto> GetToolBarExtens(string ToolbarId);


        /// <summary>
        /// 扩展动作调用
        /// </summary>
        /// <param name="actionId">操作ID</param>
        /// <param name="patientIds">病人ID数组，字符串数组</param>
        /// <param name="Data">操作附带的数据 Json</param>
        /// <returns></returns>
        [HttpPost]
        public Task<ResultDto> CallToolBarExten(string actionId, string[] patientIds,JObject Data );

    }
}
